<template>
  <div>
    <h2>{{ uname }}---{{ uage }}</h2>
  </div>
</template>

<script>
import { inject } from "vue";
export default {
  name: "OneSetup",

  setup() {
    let uname = inject("uname"); // 注入数据
    let uage = inject("uage"); // 注入数据
    return {
      uname,
      uage,
    };
  },
};
</script>

<style lang="less" scoped></style>
